package com.cfpamf.athean.rabbit.mq.plus.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.cfpamf.athean.rabbit.mq.plus.domain.po.RabbitMqPlusConsumerTaskPO;

/**
 * <p>
 * rabbitMqPlus消费任务表 Mapper 接口
 * </p>
 *
 * @author Andy（陈洪桥）
 * @since 2022-12-11 22:32:32
 */
public interface RabbitMqPlusConsumerTaskMapper extends BaseMapper<RabbitMqPlusConsumerTaskPO> {

    @Delete("DELETE FROM rabbit_mq_plus_consumer_task ${ew.customSqlSegment} limit 5000")
    int deleteByLimit5000(@Param(Constants.WRAPPER) LambdaQueryWrapper<RabbitMqPlusConsumerTaskPO> deleteWrapper);

}
